package com.hfkz.project.serivce;

import java.util.List;

import com.hfkz.project.db.JDBCHelper;
import com.hfkz.project.domain.Test;

public class TestService {
	
	public void query(String id){
		String sql = "select id,test from test where id=?";
		List<Test> t = JDBCHelper.queryBySql(Test.class, 2, sql, new Object[]{id});
	}
	
	public void insert(String id,String test){
		String sql ="insert into test (id,test) values(?,?)";
		boolean flag = JDBCHelper.execute(sql, new Object[]{id,test});
	}
	
}
